﻿<header class="header">
    <div class="left">
        <a href="javascript:history.back();"><i class="fa fa-angle-left"></i></a>
    </div>
    <div class="tit">
        <h2>机身编码</h2>
    </div>
    <div class="right"></div>
</header>
        <div>
		    <form name="SaveForm" ng-class="showOneError?'showerror':''">
		        <div class="account_info">
		            <ul class="parents_item">
		                <li>
		                    <div class="edit_label" >产品型号:</div>
		                    <div class="edit_input"><input type="text" placeholder="型号" ng-model="hardware.hardware_name" readonly  ng-click="productmodelshow=true;categoryshow=true" /></div>
		                </li>
		                <li>
		                    <div class="edit_label" >机身编码:</div>
		                    <div class="edit_input"><input type="text" placeholder="编码SN" ng-model="hardware.hardware_code"  /></div>
		                </li>
		                <li>
		                    <div class="edit_label" >购买网点:</div>
		                    <div class="edit_input"><input type="text" placeholder="购买网点" readonly ng-model="hardware.buy_address"  ng-click="networkmodelshow=true;areashow=true;" /></div>
		                </li>
		                <li>
		                    <div class="edit_label" >购买年份:</div>
		                    <div class="edit_input"><input readonly="readonly" name="appDate2" id="appDate2" type="text"  placeholder="年份" ng-model="hardware.buy_time"  /></div>
		                </li>
		            </ul>
		        </div>
				<div class="a_footer" >
					<a class="account_btn" ng-click="SaveHardWare(hardware)">保存</a>
				</div>
		    </form>
		</div>


<!--产品型号-->
<div class="ui_mask" ng-show="productmodelshow">
    <div class="ui_pop">
        <div class="mask_header">
            <span>选择购买的产品型号</span>
            <div class="close" ng-click="productmodelshow=false;categoryshow=false;productshow=false;">
                <i class="ui-icon-close-page"></i>
            </div>
        </div>
        <!--分类-->
        <div class="mask_content" ng-show="categoryshow">
            <div class="region_list">
                <ul>
                    <li ng-click="ChooseCategory(category);" ng-repeat="category in categorys">{{category.p_category_name}}</li>
                </ul>
            </div>
        </div>

        <div class="mask_content" ng-show="productshow">
            <div class="region_list">
                <ul>
                    <li ng-click="ChooseProduct(product)" ng-repeat="product in products">{{product.product_name}}</li>
                </ul>
            </div>
        </div>
    </div>
</div>



<!--购买网点-->
<div class="ui_mask" ng-show="networkmodelshow">
    <div class="ui_pop">
        <div class="mask_header">
            <span>选择购买网点</span>
            <div class="close" ng-click="networkmodelshow=false;areashow=false;areashow2=false;areashow3=false;areashow4=false;">
                <i class="ui-icon-close-page"></i>
            </div>
        </div>

        <div class="mask_content" ng-show="areashow">
            <div class="region_list">
                <ul>
                    <li ng-click="ChooseArea(area)" ng-repeat="area in areas">{{area.areaname}}</li>
                </ul>
            </div>
        </div>

        <div class="mask_content" ng-show="areashow2">
            <div class="region_list">
                <ul>
                    <li ng-click="ChooseArea2(area2)" ng-repeat="area2 in area2s">{{area2.areaname}}</li>
                </ul>
            </div>
        </div>

        <div class="mask_content" ng-show="areashow3">
            <div class="region_list">
                <ul>
                    <li ng-click="ChooseArea3(area3)" ng-repeat="area3 in area3s">{{area3.areaname}}</li>
                </ul>
            </div>
        </div>

        <div class="mask_content" ng-show="areashow4">
            <div class="region_list">
                <ul>
                    <li ng-click="ChooseNetWork(network)" ng-repeat="network in networks">{{network.network_name}}</li>
                </ul>
            </div>
        </div>
    </div>
</div>

